package com.rzl.expense.expense.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.rzl.expense.expense.mapper.RentOtherAmountFinanceMapper;
import com.rzl.expense.expense.domain.RentOtherAmountFinance;
import com.rzl.expense.expense.service.IRentOtherAmountFinanceService;

/**
 * 租費其他匯總Service业务层处理
 * 
 * @author expense
 * @date 2025-03-11
 */
@Service
public class RentOtherAmountFinanceServiceImpl implements IRentOtherAmountFinanceService 
{
    @Autowired
    private RentOtherAmountFinanceMapper rentOtherAmountFinanceMapper;

    /**
     * 查询租費其他匯總
     * 
     * @param otherAmountId 租費其他匯總主键
     * @return 租費其他匯總
     */
    @Override
    public RentOtherAmountFinance selectRentOtherAmountFinanceByOtherAmountId(String otherAmountId)
    {
        return rentOtherAmountFinanceMapper.selectRentOtherAmountFinanceByOtherAmountId(otherAmountId);
    }

    /**
     * 查询租費其他匯總列表
     * 
     * @param rentOtherAmountFinance 租費其他匯總
     * @return 租費其他匯總
     */
    @Override
    public List<RentOtherAmountFinance> selectRentOtherAmountFinanceList(RentOtherAmountFinance rentOtherAmountFinance)
    {
        return rentOtherAmountFinanceMapper.selectRentOtherAmountFinanceList(rentOtherAmountFinance);
    }

    /**
     * 新增租費其他匯總
     * 
     * @param rentOtherAmountFinance 租費其他匯總
     * @return 结果
     */
    @Override
    public int insertRentOtherAmountFinance(RentOtherAmountFinance rentOtherAmountFinance)
    {
        return rentOtherAmountFinanceMapper.insertRentOtherAmountFinance(rentOtherAmountFinance);
    }

    /**
     * 修改租費其他匯總
     * 
     * @param rentOtherAmountFinance 租費其他匯總
     * @return 结果
     */
    @Override
    public int updateRentOtherAmountFinance(RentOtherAmountFinance rentOtherAmountFinance)
    {
        return rentOtherAmountFinanceMapper.updateRentOtherAmountFinance(rentOtherAmountFinance);
    }

    /**
     * 批量删除租費其他匯總
     * 
     * @param otherAmountIds 需要删除的租費其他匯總主键
     * @return 结果
     */
    @Override
    public int deleteRentOtherAmountFinanceByOtherAmountIds(String[] otherAmountIds)
    {
        return rentOtherAmountFinanceMapper.deleteRentOtherAmountFinanceByOtherAmountIds(otherAmountIds);
    }

    /**
     * 删除租費其他匯總信息
     * 
     * @param otherAmountId 租費其他匯總主键
     * @return 结果
     */
    @Override
    public int deleteRentOtherAmountFinance()
    {
        return rentOtherAmountFinanceMapper.deleteRentOtherAmountFinance();
    }




    @Override
    public void batchRentOtherAmountFinance(List<RentOtherAmountFinance> list)
    {

         rentOtherAmountFinanceMapper.batchRentOtherAmountFinance(list);
    }


}
